﻿using System;
namespace enyo
{
    public class PalmServiceSender : enyo.Object
    {
        public string method;
        public object @params;
    }

    public delegate void PalmServiceHandler(PalmServiceSender inSender, object inResponse);    

    public class PalmService : enyo.Control
    {
        public string Service;
        public string Method;

        public void Call(object param)
        {
        }

        public PalmServiceHandler onSuccess;
        public PalmServiceHandler onFailure;
    }

    [NonScript]
    public static class PalmServiceExt
    {
        public static PalmServiceHandler Bind(this PalmServiceHandler h, object target)
        {
            return null;
        }
    }
}
